DragLeave
TheDragLeave
method should finish tracking a drag operation and deactivate this part from drag tracking.
void DragLeave (in ODFacet facet, in ODPoint where);
facet
- A reference to a facet where the drag point is located.
where
- The location of the drag point, expressed in frame coordinates.
DISCUSSION
OpenDoc calls this method when the drag point has left the specified facet of this part during a drag operation. After this method executes successfully, the part is guaranteed not to receiveDragWithin
orDrop
messages until you receive anotherDragEnter
message.Your part's
DragLeave
method should clean up after a drag operation. For example, you should remove the drag border on the frame, remove highlighting from any content highlighted during drag tracking, and change the cursor appearance back to its original form. In addition, if your part calls one of its display frames'SetDroppable
method with a value ofkODTrue
, you must override this method and implement the protocol for drag highlighting and accepting dropped data.OVERRIDING
When you subclassODPart
, you can override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.EXCEPTIONS
kODErrDoesNotDrop
- This part does not support drag and drop.
SEE ALSO
TheODPoint
type (page 885).
TheODFrame::SetDroppable
method (page 333).
TheODPart::DragEnter
method (page 500).
TheODPart::DragWithin
method (page 503).
TheODPart::Drop
method (page 506).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"On Leaving a Part's Facet" on page 364 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help